<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>内容</title>
    <script src="https://cdn.staticfile.org/popper.js/1.12.5/umd/popper.min.js"></script>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <link rel="stylesheet" type="text/css" href="../../static/css/answer.css" th:href="@{/css/answer.css}">

</head>
<body>
<div class="writeanswer Card center-block"  style="background: white; height: 400px;width: 80%; padding:10px;display: none;" th:fragment="writeanswer">
    <script src="../../../static/js/writeAnswerCard.js" th:src="@{/js/writeAnswerCard.js}"></script>
   <form id="answer-from" action="/addAnswer" method="post">
        <div id="userInfo" style="height: 30px;">
           <div class="icon pull-left">
               <img style="width:70px;height:70px;" src="images/icon-dp.png"
                    th:each="cookie :${#httpServletRequest.getCookies()}"
                    th:if="${cookie.getName().equals('zhihuid')}"
                    th:src="@{'/img/upfile/'+${cookie.getValue()}+'dp.jpg'}"
                    class="icon-dp">
           </div>
           <div  class="username pull-left text-primary" style="line-height: 53px; font-size: 17px;"
                th:each="cookie :${#httpServletRequest.getCookies()}"
                th:if="${cookie.getName().equals('zhihu')}"
                th:text="${cookie.getValue()}">
           </div>
       </div>
        <div id="editor-place" style="height: 250px;margin-top: 40px;">
            <div id="editor-tools-answer" style="border-bottom: 1px gainsboro solid;border-top: 1px gainsboro solid;"></div>
            <div id="editor-area-answer" style="height: 200px"></div>
        </div>
        <div style="height: 50px" id="answer-footer">
            <button id="answer-fabu" class=" btn btn-primary pull-right" style="margin-right: 20px">提交回答</button>
        </div>
        <input name="questionid" th:value="${param.questionid}" hidden="true">
        <input id="answer-content" name="content" hidden="true" >
   </form>


</div>